﻿using System;
using System.Collections.Generic;
using System.Web;

namespace VemTransporte.Models.Persistencia
{
    public interface IGenericDAO<T, IdDataType> where T : class
    {
        T Salvar(T entity);

        T Alterar(T entity);

        void Excluir(T entity);

        T ProcurarPorId(IdDataType id);

        IList<T> ProcurarTodos();
    }
}